//
//  JkHorizonItem.m
//  JackToolsBox
//
//  Created by Jack Xue on 2019/12/24.
//  Copyright © 2019 Jack Xue. All rights reserved.
//

#import "JkHorizonItem.h"
@interface JkHorizonItem(){
    UIView *_rightView;
}
@end

@implementation JkHorizonItem
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor redColor];
        _rightView = [[UIView alloc]initWithFrame:CGRectZero];
        _rightView.backgroundColor = [UIColor blueColor];
        [self addSubview:_rightView];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    _rightView.frame = CGRectMake(self.bounds.size.width - 10, 0, 10, self.bounds.size.height);
}

@end
